﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class staff
    {

        public double  R { get; set; }

        public int L { get; set; }
        public int W { get; set; }

        public staff(double r) {
            this.R = r;
        }

        public  void yuanx() {
            double result;
            result = R * R * 3.14;
            Console.WriteLine("圆的面积是{0}",result);
        }

        public staff(int l,int w) {
            this.L = l;
            this.W = w;

        }

        public void changfangx() {
            int result;
            result = L * W;
            Console.WriteLine("长方形的面积是{0}",result);
        }

    }
}
